<MduiButton Color="@Colors.Theme.Accent" OnClick="@(_=>open=true)">Open</MduiButton>

<MduiDialog @bind-Open="@open" Title="Are you sure?">
    <ChildContent>You'll lose all photos and media!</ChildContent>
    <ActionsContent>
        <MduiButton DisableRaised OnClick="_=>open=false">Cancel</MduiButton>
        <MduiButton DisableRaised>Erase</MduiButton>
    </ActionsContent>
</MduiDialog>

@code{
    bool open;
}